﻿<div class="topcol">
    <div class="container text-right">
        @if (User.Identity.IsAuthenticated)
        {
            <span class="name">您好，@User.Identity.Name</span>
            <a href="@Url.Action("Index", "account")"><span class="glyphicon glyphicon-user"></span> @Labels.PersonalCenter</a>

            if (User.IsInRole("系统管理员"))
            {
                <a href="@Url.Action("Index", "Home",new { area="Admin"})"><span class="glyphicon glyphicon-dashboard"></span> @Labels.Dashboard</a>
               
            }
            <a href="javascript:document.getElementById('logoutForm').submit()">
                <span class="glyphicon glyphicon-log-out"></span> @Labels.SignOut
            </a>

           
        }
        else
        {
            <a href="@Url.Action("login", "account")"><span class="glyphicon glyphicon-log-in"></span> @Labels.Login</a>
                <a href="@Url.Action("register", "account")">
                    <span class="glyphicon glyphicon-edit"></span> @Labels.Signup
                </a>
        }

    </div>
</div>
@using (Html.BeginForm("LogOut", "Account", new { area = "" }, FormMethod.Post, new { id = "logoutForm" }))
{
    @Html.AntiForgeryToken()
}